<th:block  th:if="${isHaveChildren+''=='1'}" th:with="titleFontSize=15">
    <th:block th:each="item2 : ${selChapterItemsList}" >
        <th:block >
            <div class="list" style="margin-top: 10px;">
                <div  class="chapterTitle"  th:style="'margin-left:' + ${item2.level*30}+'px;width: '+${100-(item2.level*3)}+'%;font-size: '+${titleFontSize}+'px;color: #666;display: flex;justify-content: space-between;flex-direction: row;align-items: center; background: #ffffff;'">
                    <span  th:text="${item2.name}"></span>
                    <div class="chapterIcon" th:id="'resourcesListDiv_'+${item2.id}">
                        <div th:onclick="'javascript:toCouInfoChapterItems2(\''+${item2.id}+'\')'" class="discuss_buttons_send dis_row a_center j_center ">
                           查看资源
                        </div>
                    </div>
                </div>
            </div>
            <th:block  th:if="${item2.isHaveChildren+''=='1'}" th:with="titleFontSize=14">
                <th:block th:each="item3 : ${item2.children}" >
                    <th:block >
                        <div class="list" style="color: #666;margin-top: 10px;" >
                            <div  class="chapterTitle"  th:style="'margin-left:' + ${item3.level*30}+'px;width: '+${100-(item3.level*3)}+'%;font-size: '+${titleFontSize}+'px;color: #666;display: flex;justify-content: space-between;flex-direction: row;align-items: center; background: #ffffff;'" >
                                <span th:text="${item3.name}"></span>
                                <div class="chapterIcon" th:id="'resourcesListDiv_'+${item3.id}">
                                    <div th:onclick="'javascript:toCouInfoChapterItems2(\''+${item3.id}+'\')'" class="discuss_buttons_send dis_row a_center j_center ">
                                        查看资源
                                    </div>
                                </div>
                            </div>
                        </div>
                    </th:block>
                </th:block>
            </th:block>
        </th:block>
    </th:block>
</th:block>
